Skip to content

fix(redfishwrapper): skip absent prerequisite attributes in SetNetworkBootEnabled - #473

Merged
mergify[bot] merged 1 commit into
bmc-toolbox:mainfrom
mcanevet:fix/network-boot-optional-prereqs
Oct 1, 2026
Merged

mergify[bot] merged 1 commit into
bmc-toolbox:mainfrom
mcanevet:fix/network-boot-optional-prereqs

Conversation

@mcanevet

Copy link
Copy Markdown
Contributor

What does this PR implement/change/remove?

SetNetworkBootEnabled always PATCHes NetworkStack and BootModeSelect along with the protocol switches. The Supermicro AS-1015CS-TNR-EU BIOS has no BootModeSelect, so the BMC rejects the whole request:

400: The value 'null' for the property BootModeSelect is not a type that the property can accept.

NetworkStack and BootModeSelect are now dropped from the PATCH when the BIOS doesn't list them. The protocol switches are still required.

On that board, the PATCH is rejected (400) with BootModeSelect and accepted (202) without it.

Checklist

  • Tests added
  • Similar commits squashed

The HW vendor this change applies to (if applicable)

Supermicro

The HW model number, product name this change applies to (if applicable)

AS-1015CS-TNR-EU

The BMC firmware and/or BIOS versions that this change applies to (if applicable)

BMC 01.09.02, BIOS 3.8

What version of tooling - vendor specific or opensource does this change depend on (if applicable)

None

Description for changelog/release notes

SetNetworkBootEnabled no longer sends NetworkStack or BootModeSelect when the BIOS doesn't have them (fixes a 400 on Supermicro AS-1015CS-TNR-EU)

…kBootEnabled

The Supermicro/AMI table always PATCHes NetworkStack and BootModeSelect
along with the protocol switches. The fingerprint only confirms
IPv4HTTPSupport exists, so a BIOS without BootModeSelect (Supermicro
AS-1015CS-TNR-EU, BIOS 3.8) rejects the whole request with
"The value 'null' for the property BootModeSelect is not a type that
the property can accept" (HTTP 400). The same PATCH without
BootModeSelect is accepted.

Mark NetworkStack and BootModeSelect as optionalWhenAbsent and drop them
from the PATCH when the BIOS configuration doesn't list them. The
protocol switches stay required.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mergify

mergify Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-01 15:26 UTC · Rule: default · triggered by rule refactored queue action rule
  • ✅ Checks skipped · PR is already up-to-date
  • ✅ Merged — 2026-10-01 15:26 UTC · at c7173c01153fa3b2e7d0d669113d634d1f683d35 · merge

This pull request spent 13 seconds in the queue, including 1 second running CI.

Required conditions to merge

@mergify
mergify Bot merged commit c7173c0 into bmc-toolbox:main Oct 1, 2026
4 of 5 checks passed
@mergify mergify Bot removed the queued label Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants